package com.course.delegate;

import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;
import com.course.formbean.ProfileFormBean;
import com.course.serviceI.SecurityServiceI;
import com.course.serviceImpl.SecurityServiceImpl;

public class SecurityMgrDelegate {
	
	SecurityServiceI ssi=new SecurityServiceImpl();
	
	public boolean changePassword(ProfileFormBean regbean)
	throws LoginException, ConnectionException {
		return ssi.changePassword(regbean);
	}
	public boolean changeQuestion(ProfileFormBean regbean)
	throws LoginException, ConnectionException {
		return ssi.changeQuestion(regbean);
	}
	public String checkUser(String userName) throws DataNotFoundException,
	LoginException {
		return ssi.checkUser(userName);
	}
	public String loginCheck(ProfileFormBean regbean)
	throws DataNotFoundException, LoginException {
		return ssi.loginCheck(regbean);
	}
	public void loginaudit(String loginid) throws LoginException{
		ssi.loginaudit(loginid);
	}
	public String recoverPasswordByQuestion(ProfileFormBean regbean)
	throws DataNotFoundException, LoginException {
		return ssi.recoverPasswordByQuestion(regbean);
	}
	
	public boolean checkAvailability(String userid){
		
		return ssi.checkAvailability(userid);
	}
}
